Amazon AWS Certified Solutions Architect - Associate SAA-C03 Practice Test 29
Question 280
A Lambda function must call an AWS service without packaging long-term access keys. How should authorization be supplied?
- Assign reserved concurrency to the critical Lambda function.
- Invoke Lambda asynchronously and inspect its retry and destination configuration.
- Attach an IAM execution role with least-privilege permissions to the function.
- Configure provisioned concurrency for the published function version or alias.
Explanation
Correct Answer
C:Lambda obtains temporary role credentials for SDK calls, avoiding embedded persistent keys. Call the service under the role and inspect denied actions outside its policy.
Incorrect Answers
A:Reserved concurrency sets aside and limits concurrent capacity for that function within the account. Attach an IAM execution role with least-privilege permissions to the function. Call the service under the role and inspect denied actions outside its policy.
B:Asynchronous invocation queues the event for later processing and returns before function completion. Attach an IAM execution role with least-privilege permissions to the function. Call the service under the role and inspect denied actions outside its policy.
D:Provisioned concurrency pre-initializes environments for predictable low-latency interactive traffic. Attach an IAM execution role with least-privilege permissions to the function. Call the service under the role and inspect denied actions outside its policy.
Question 281
A public API must absorb short traffic spikes without immediately overloading a low-capacity backend. What control should be applied at the entry point?
- Create an API Gateway custom domain name with an appropriate ACM certificate and API mapping.
- Associate an AWS WAF web ACL with the supported regional API Gateway stage.
- Configure API Gateway throttling limits appropriate to the backend.
- Configure an API Gateway JWT authorizer with the expected issuer and audience.
Explanation
Correct Answer
C:Stage or route throttling bounds request rate and bursts, returning throttling responses before backend overload. Load-test above the configured steady rate and observe 429 responses.
Incorrect Answers
A:A verified domain and certificate terminate trusted TLS for the mapped API stage or route. Configure API Gateway throttling limits appropriate to the backend. Load-test above the configured steady rate and observe 429 responses.
B:WAF evaluates web requests by rules before they reach protected regional integrations. Configure API Gateway throttling limits appropriate to the backend. Load-test above the configured steady rate and observe 429 responses.
D:JWT authorizers validate token signatures and claims at the API edge before integration invocation. Configure API Gateway throttling limits appropriate to the backend. Load-test above the configured steady rate and observe 429 responses.
Question 282
A mobile application needs a versioned HTTP API that forwards events to Lambda and scales without managed application servers. Which AWS front end fits?
- Use API Gateway HTTP API with Lambda proxy integration where features meet requirements.
- Create an API Gateway custom domain name with an appropriate ACM certificate and API mapping.
- Configure an API Gateway JWT authorizer with the expected issuer and audience.
- Configure API Gateway throttling limits appropriate to the backend.
Explanation
Correct Answer
A:Managed API Gateway scales request handling and invokes Lambda, removing the need for EC2 proxies. Invoke the deployed route and verify Lambda input and output mapping.
Incorrect Answers
B:A verified domain and certificate terminate trusted TLS for the mapped API stage or route. Use API Gateway HTTP API with Lambda proxy integration where features meet requirements. Invoke the deployed route and verify Lambda input and output mapping.
C:JWT authorizers validate token signatures and claims at the API edge before integration invocation. Use API Gateway HTTP API with Lambda proxy integration where features meet requirements. Invoke the deployed route and verify Lambda input and output mapping.
D:Stage or route throttling bounds request rate and bursts, returning throttling responses before backend overload. Use API Gateway HTTP API with Lambda proxy integration where features meet requirements. Invoke the deployed route and verify Lambda input and output mapping.
Question 283
A Regional API Gateway REST API must remain reachable over the public API endpoint, but only SigV4-signed requests from an approved partner AWS account may call it. Which access-control design enforces that account boundary?
- Restrict a private REST API solely to a VPC endpoint even though the API must retain the public Regional endpoint.
- Apply an API Gateway REST API resource policy restricted to the approved AWS account principal, with the appropriate AWS_IAM authorization.
- Create an unrestricted API key usage plan and treat the client API key as a verified AWS account identity.
- Enable API Gateway throttling only and assume it denies all calls from other AWS accounts.
Explanation
Correct Answer
B:An API Gateway REST API resource policy can restrict which AWS principals invoke a public Regional API. Combine the allowed account principal with the intended AWS_IAM/SigV4 authentication on the methods, and test calls using principals from approved and unapproved accounts.
Incorrect Answers
A:Private REST API endpoint restrictions address private VPC connectivity, but the scenario explicitly requires the Regional public endpoint. Use an account-principal resource policy with IAM authorization instead.
C:Usage plans and API keys support metering and throttling; possession of an API key alone is not equivalent to authenticated AWS account-principal identity.
D:Throttling limits request rates and bursts but cannot distinguish the partner AWS account from other callers. Use principal-aware authorization in the effective resource policy.
Question 284
An API needs per-client quotas and API keys for usage tracking, not authentication identity. What should be configured?
- Create an API Gateway custom domain name with an appropriate ACM certificate and API mapping.
- Configure API Gateway throttling limits appropriate to the backend.
- Use a private API Gateway REST API with an endpoint-aware resource policy.
- Use an API Gateway usage plan with API keys and a separate authentication control.
Explanation
Correct Answer
D:Usage plans can meter and throttle clients, but API keys alone are not strong authentication or authorization. Call with a plan key and verify quotas plus independent authenticated identity.
Incorrect Answers
A:A verified domain and certificate terminate trusted TLS for the mapped API stage or route. Use an API Gateway usage plan with API keys and a separate authentication control. Call with a plan key and verify quotas plus independent authenticated identity.
B:Stage or route throttling bounds request rate and bursts, returning throttling responses before backend overload. Use an API Gateway usage plan with API keys and a separate authentication control. Call with a plan key and verify quotas plus independent authenticated identity.
C:Private REST APIs are reachable through interface endpoints and can enforce source VPC endpoint conditions. Use an API Gateway usage plan with API keys and a separate authentication control. Call with a plan key and verify quotas plus independent authenticated identity.
Question 285
An authenticated API must validate JWT tokens issued by an OIDC provider. What component can perform managed token checks for supported API types?
- Associate an AWS WAF web ACL with the supported regional API Gateway stage.
- Use API Gateway HTTP API with Lambda proxy integration where features meet requirements.
- Configure an API Gateway JWT authorizer with the expected issuer and audience.
- Configure API Gateway throttling limits appropriate to the backend.
Explanation
Correct Answer
C:JWT authorizers validate token signatures and claims at the API edge before integration invocation. Test a valid token and one with the wrong audience.
Incorrect Answers
A:WAF evaluates web requests by rules before they reach protected regional integrations. Configure an API Gateway JWT authorizer with the expected issuer and audience. Test a valid token and one with the wrong audience.
B:Managed API Gateway scales request handling and invokes Lambda, removing the need for EC2 proxies. Configure an API Gateway JWT authorizer with the expected issuer and audience. Test a valid token and one with the wrong audience.
D:Stage or route throttling bounds request rate and bursts, returning throttling responses before backend overload. Configure an API Gateway JWT authorizer with the expected issuer and audience. Test a valid token and one with the wrong audience.
Question 286
A client requires a custom domain and TLS for a regional API. How should the domain bind securely?
- Create an API Gateway custom domain name with an appropriate ACM certificate and API mapping.
- Use API Gateway HTTP API with Lambda proxy integration where features meet requirements.
- Associate an AWS WAF web ACL with the supported regional API Gateway stage.
- Configure API Gateway throttling limits appropriate to the backend.
Explanation
Correct Answer
A:A verified domain and certificate terminate trusted TLS for the mapped API stage or route. Resolve the domain, invoke the mapped path, and inspect the served certificate.
Incorrect Answers
B:Managed API Gateway scales request handling and invokes Lambda, removing the need for EC2 proxies. Create an API Gateway custom domain name with an appropriate ACM certificate and API mapping. Resolve the domain, invoke the mapped path, and inspect the served certificate.
C:WAF evaluates web requests by rules before they reach protected regional integrations. Create an API Gateway custom domain name with an appropriate ACM certificate and API mapping. Resolve the domain, invoke the mapped path, and inspect the served certificate.
D:Stage or route throttling bounds request rate and bursts, returning throttling responses before backend overload. Create an API Gateway custom domain name with an appropriate ACM certificate and API mapping. Resolve the domain, invoke the mapped path, and inspect the served certificate.
Question 287
An API backend may take several minutes but API Gateway times out the synchronous request. Which architectural change preserves task completion?
- Configure an API Gateway JWT authorizer with the expected issuer and audience.
- Use API Gateway HTTP API with Lambda proxy integration where features meet requirements.
- Configure API Gateway throttling limits appropriate to the backend.
- Accept the work asynchronously and expose a job-status retrieval endpoint.
Explanation
Correct Answer
D:A queue or workflow avoids dependence on a single API integration timeout for long-running jobs. Submit a long task and poll for completion without keeping the initial request open.
Incorrect Answers
A:JWT authorizers validate token signatures and claims at the API edge before integration invocation. Accept the work asynchronously and expose a job-status retrieval endpoint. Submit a long task and poll for completion without keeping the initial request open.
B:Managed API Gateway scales request handling and invokes Lambda, removing the need for EC2 proxies. Accept the work asynchronously and expose a job-status retrieval endpoint. Submit a long task and poll for completion without keeping the initial request open.
C:Stage or route throttling bounds request rate and bursts, returning throttling responses before backend overload. Accept the work asynchronously and expose a job-status retrieval endpoint. Submit a long task and poll for completion without keeping the initial request open.
Question 288
An application needs centralized protection against common HTTP injection attacks on a regional REST endpoint. What should be attached?
- Create an API Gateway custom domain name with an appropriate ACM certificate and API mapping.
- Configure an API Gateway JWT authorizer with the expected issuer and audience.
- Use API Gateway HTTP API with Lambda proxy integration where features meet requirements.
- Associate an AWS WAF web ACL with the supported regional API Gateway stage.
Explanation
Correct Answer
D:WAF evaluates web requests by rules before they reach protected regional integrations. Send a benign and test-blocked request and inspect WAF logs.
Incorrect Answers
A:A verified domain and certificate terminate trusted TLS for the mapped API stage or route. Associate an AWS WAF web ACL with the supported regional API Gateway stage. Send a benign and test-blocked request and inspect WAF logs.
B:JWT authorizers validate token signatures and claims at the API edge before integration invocation. Associate an AWS WAF web ACL with the supported regional API Gateway stage. Send a benign and test-blocked request and inspect WAF logs.
C:Managed API Gateway scales request handling and invokes Lambda, removing the need for EC2 proxies. WAF evaluates web requests by rules before they reach protected regional integrations.
Question 289
A DynamoDB audit Lambda should be invoked for each eligible table change and an analytics consumer needs both before- and after-images of updated items. Which TWO stream settings provide the required source and image data? (Select TWO.)
- Create a CloudFront invalidation on every table update instead of reading the stream.
- Configure an AWS Lambda event-source mapping to consume the DynamoDB stream.
- Enable DynamoDB Streams with the NEW_AND_OLD_IMAGES stream view.
- Use DynamoDB TTL expiry notifications alone as the source of every table write event.
- Enable S3 bucket versioning and treat S3 object versions as a substitute for DynamoDB Streams.
Explanation
Correct Answers
B:An event-source mapping polls the DynamoDB stream and invokes the designated Lambda consumer with batches of change records.
C:This stream view exposes the required old and new images for applicable item modifications.
Incorrect Answers
A:CloudFront invalidations do not deliver DynamoDB item image events to a Lambda audit consumer.
D:TTL removals are a subset of item lifecycle events and cannot replace Streams for all committed changes.
E:Bucket object history cannot supply DynamoDB table mutations or their previous and new item images.
Question 290
An analytics consumer must view both old and new item images after DynamoDB updates. Which stream view is needed?
- Apply supported event filtering on the DynamoDB Streams event-source mapping.
- Enable DynamoDB Streams with NEW_AND_OLD_IMAGES.
- Enable DynamoDB Streams and configure a Lambda event-source mapping.
- Process stream records in shard order for the item key and avoid reordering its dependent side effects.
Explanation
Correct Answer
B:This stream view includes both item states for update comparison and audit logic. Modify a test item and verify its pre- and post-update attributes in the record.
Incorrect Answers
A:Event filtering routes selected stream records into function batches based on defined patterns. Enable DynamoDB Streams with NEW_AND_OLD_IMAGES. Modify a test item and verify its pre- and post-update attributes in the record.
C:DynamoDB Streams exposes ordered per-item change records for downstream consumers. Enable DynamoDB Streams with NEW_AND_OLD_IMAGES. Modify a test item and verify its pre- and post-update attributes in the record.
D:DynamoDB Streams preserves ordering of changes for a particular item; consumer parallelism needs careful handling. Enable DynamoDB Streams with NEW_AND_OLD_IMAGES. Modify a test item and verify its pre- and post-update attributes in the record.