exam questions

Exam AWS Certified Developer Associate All Questions

View all questions & answers for the AWS Certified Developer Associate exam

Exam AWS Certified Developer Associate topic 1 question 3 discussion

Exam question from Amazon's AWS Certified Developer Associate
Question #: 3
Topic #: 1
[All AWS Certified Developer Associate Questions]

A global company has a mobile app with static data stored in an Amazon S3 bucket in the us-east-1 Region. The company serves the content through an Amazon
CloudFront distribution. The company is launching the mobile app in South Africa. The data must reside in the af-south-1 Region. The company does not want to deploy a specific mobile client for South Africa.
What should the company do to meet these requirements?

  • A. Use the CloudFront geographic restriction feature to block access to users in South Africa.
  • B. Create a Lambda@Edge function. Associate the Lambda@Edge function as an origin request trigger with the CloudFront distribution to change the S3 origin Region.
  • C. Create a Lambda@Edge function. Associate the Lambda@Edge function as a viewer response trigger with the CloudFront distribution to change the S3 origin Region.
  • D. Include af-south-1 in the alternate domain name (CNAME) of the CloudFront distribution.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Spamuel
Highly Voted 2 years, 7 months ago
This should be option B - Lambda@Ege with a Origin Request Trigger. https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-examples.html
upvoted 12 times
...
sindra
Highly Voted 2 years, 7 months ago
Selected Answer: B
The Answer Should be B here is the reference https://aws.amazon.com/blogs/networking-and-content-delivery/dynamically-route-viewer-requests-to-any-origin-using-lambdaedge/
upvoted 7 times
...
sumanshu
Most Recent 4 months, 2 weeks ago
Selected Answer: B
The data needs to be stored in af-south-1, but the app is currently using us-east-1 as the origin. Lambda@Edge is a serverless compute service that runs code globally at AWS edge locations. By using Lambda@Edge as an origin request trigger, you can dynamically modify the origin of the CloudFront request based on user attributes like geography. For example: South African users can be redirected to content stored in the af-south-1 S3 bucket. Other users can continue accessing the us-east-1 S3 bucket.
upvoted 1 times
sumanshu
4 months, 2 weeks ago
Option A - Eliminated - because the question requires serving the content to South African users, not blocking them.
upvoted 1 times
sumanshu
4 months, 2 weeks ago
Option C) - Lambda@Edge function as a viewer response. (So this function trigerred when it deliver the content to the viewer). You can’t change where the data comes from when the response is already on its way to the user. - Eliminited
upvoted 1 times
sumanshu
4 months, 2 weeks ago
Option D) CNAMEs does nothing to solve the problem of changing the S3 bucket Region dynamically based on geography. - Eliminited
upvoted 1 times
...
...
...
...
SD_CS
1 year, 3 months ago
How could this be A? What is the point of restricting users from a location, if you are launching an app in that region? Can someone kindly explain the rationale behind A? PS - I feel the answer should be B
upvoted 2 times
...
dvastub
1 year, 7 months ago
Selected Answer: B
The Answer Should be B here is the reference https://aws.amazon.com/blogs/networking-and-content-delivery/dynamically-route-viewer-requests-to-any-origin-using-lambdaedge/
upvoted 1 times
...
Aroons
1 year, 7 months ago
Answer is A As we have predefined feature in AWS to restrict user to access/restrict content with specific country But option B is having some overhead of writing extra code which may miss some use cases or may go wrong
upvoted 1 times
Aroons
1 year, 7 months ago
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/georestrictions.html
upvoted 1 times
...
...
rcaliandro
1 year, 10 months ago
Selected Answer: B
lambda@edge is a CloudFront functionality that allow us to implement some logic by using Node.js or python at the following points: - After CloudFront receives a request from a viewer (viewer request) - Before CloudFront forwards the request to the origin (origin request) - After CloudFront receives the response from the origin (origin response) - Before CloudFront forwards the response to the viewer (viewer response) We need to consider the origin in order to change and configure the S3 destination for users in Africa before send the response to the user. So, by exclusion, the B is the correct one. (https://docs.aws.amazon.com/lambda/latest/dg/lambda-edge.html)
upvoted 2 times
...
Jingke
2 years ago
The answer A is confusion because "The company is launching the mobile app in South Africa", the A is refuse users in SA to access the APP. And "The company does not want to deploy a specific mobile client for South Africa" is mean the company don't want to issue a local version for SA, so B is correct answer. But looks D also correct
upvoted 2 times
...
javarun
2 years ago
Selected Answer: B
should be Be because of different data for this two destinations
upvoted 1 times
...
Krt5894
2 years, 2 months ago
Selected Answer: B
It should be B
upvoted 1 times
...
Jay1299
2 years, 2 months ago
Option A:Use the CloudFront geographic restriction feature to block access to users in South Africa will block the access to all the users in South Africa and it clearly mentioned that only to specific client it is to be deployed hence I chose B because Viewer policy is to enable SSL between end-user and cloud-front which is not the requested case
upvoted 1 times
...
TechieYeti
2 years, 2 months ago
Selected Answer: B
Option A doesn't change the S3 bucket origin region, it simply restricts the users based trying to access CF
upvoted 1 times
...
usa12
2 years, 3 months ago
The company can use Amazon S3 Cross-Region Replication (CRR) to replicate the data from the us-east-1 Region to the af-south-1 Region. Once the data is replicated to the af-south-1 Region, the company can update the CloudFront distribution to use the S3 bucket in the af-south-1 Region as the origin. This way, the mobile app users in South Africa will be served the content from the af-south-1 Region, while users in other regions will continue to be served from the us-east-1 Region. It is important to note that, CRR is a one-way replication and there will be a delay in the replication, so it is important to plan for this potential delay and test the solution.
upvoted 1 times
...
mithunkundu1983
2 years, 4 months ago
Selected Answer: B
Lambda@Ege with a Origin Request Trigger.
upvoted 1 times
...
Hesham_Eltaher
2 years, 6 months ago
Selected Answer: B
This should be option B
upvoted 1 times
...
vasilisledo
2 years, 6 months ago
answer B, https://www.cloud-exam-prepare.com/?dynamically-route-viewer-requests/
upvoted 1 times
...
JSH90
2 years, 7 months ago
This should be B? https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-examples.html#lambda-examples-content-based-S3-origin-request-trigger
upvoted 2 times
JAMG54
2 years, 7 months ago
I think is A. Lambda@Edge needs to be confured at us east 1
upvoted 2 times
JAMG54
2 years, 7 months ago
Yes. It is B. I was wrong
upvoted 1 times
...
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago