exam questions

Exam AWS Certified SysOps Administrator - Associate All Questions

View all questions & answers for the AWS Certified SysOps Administrator - Associate exam

Exam AWS Certified SysOps Administrator - Associate topic 1 question 3 discussion

A company is running a website on Amazon EC2 instances behind an Application Load Balancer (ALB). The company configured an Amazon CloudFront distribution and set the ALB as the origin. The company created an Amazon Route 53 CNAME record to send all traffic through the CloudFront distribution. As an unintended side effect, mobile users are now being served the desktop version of the website.
Which action should a SysOps administrator take to resolve this issue?

  • A. Configure the CloudFront distribution behavior to forward the User-Agent header.
  • B. Configure the CloudFront distribution origin settings. Add a User-Agent header to the list of origin custom headers.
  • C. Enable IPv6 on the ALB. Update the CloudFront distribution origin settings to use the dualstack endpoint.
  • D. Enable IPv6 on the CloudFront distribution. Update the Route 53 record to use the dualstack endpoint.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
Pepepep
Highly Voted 2 years, 8 months ago
Selected Answer: A
I agree it is A because: 1. B is wrong, since you are modifying origin custom headers that are values that you set unilaterally, independent of the Header of the request that you received from client. As the documentation states, the uses cases for for origin custom headers are: Identifying requests from CloudFront Determining which requests come from a particular distribution Enabling cross-origin resource sharing (CORS) Controlling access to content (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/add-origin-custom-headers.html)
upvoted 20 times
Pepepep
4 months, 2 weeks ago
2. A is correct. If you want CloudFront to cache different versions of your objects based on the device that a user is using to view your content, we recommend that you configure CloudFront to forward one or more of the following headers to your custom origin: CloudFront-Is-Desktop-Viewer CloudFront-Is-Mobile-Viewer CloudFront-Is-SmartTV-Viewer CloudFront-Is-Tablet-Viewer As you can see based on what comes in the request received by CF, It is going to set the value to true before forwarding the request to your origin. The resume, with origin custom headers you are the one that decide what is going to be on the header, there is no way to match what it comes on the request received on CF and what is going to be sent to the origin. On the other hand with User-Agent header, CF inspects the header and determines what type of device is used (Smart TV, Tablet, Desktop, Mobile).
upvoted 15 times
...
...
dontcomplain
Highly Voted 2 years, 9 months ago
Why would this not be B? It would serve the same function more efficiently?
upvoted 10 times
...
ogum
Most Recent 2 days ago
Selected Answer: A
A. Configure the CloudFront distribution behavior to forward the User-Agent header. Most Voted
upvoted 1 times
...
examaws
1 month, 2 weeks ago
Selected Answer: A
Here's why A is preferred over B: Forwarding User-Agent: Option A specifically forwards the User-Agent header from the client to the origin. This allows the backend (ALB) to determine how to respond based on the type of device making the request (mobile vs. desktop). Custom Headers: Option B involves adding a User-Agent header as a custom header, which may not be recognized by the application unless it is explicitly programmed to handle that custom header. This could lead to the application still serving the wrong version of the site. In summary, forwarding the User-Agent header (Option A) is a more straightforward and effective solution for ensuring that the correct version of the website is served based on the device type.
upvoted 3 times
...
rbzkue
1 month, 4 weeks ago
Selected Answer: A
I agree it is A because: 1. B is wrong, since you are modifying origin custom headers that are values that you set unilaterally, independent of the Header of the request that you received from client. As the documentation states, the uses cases for for origin custom headers are: Identifying requests from CloudFront Determining which requests come from a particular distribution Enabling cross-origin resource sharing (CORS) Controlling access to content (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/add-origin-custom-headers.html) guide: https://docs.google.com/document/d/1bPfarZuVVSUO85u0felozNCgE-C9uvz2wih07tsvh5o
upvoted 1 times
...
ranjeetrrv
4 months, 2 weeks ago
A is correct answer: The correct action to resolve the issue of mobile users being served the desktop version of the website is: A. Configure the CloudFront distribution behavior to forward the User-Agent header. Explanation: When mobile users access the website through CloudFront, the User-Agent header contains information about the device and browser being used. By configuring the CloudFront distribution behavior to forward the User-Agent header to the ALB, the ALB can use this information to serve the appropriate version of the website to mobile users
upvoted 1 times
...
Christina666
4 months, 2 weeks ago
Selected Answer: A
User-Agent header If you want CloudFront to cache different versions of your objects based on the device that a user is using to view your content, we recommend that you configure CloudFront to forward one or more of the following headers to your custom origin: CloudFront-Is-Desktop-Viewer CloudFront-Is-Mobile-Viewer CloudFront-Is-SmartTV-Viewer CloudFront-Is-Tablet-Viewer https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/RequestAndResponseBehaviorCustomOrigin.html#request-custom-user-agent-header
upvoted 5 times
...
be9z
4 months, 2 weeks ago
Option A: Configure the CloudFront distribution behavior to forward the User-Agent header. Explanation: When CloudFront serves content, it can use the User-Agent header from the client’s request to determine the type of device (e.g., desktop or mobile). By forwarding the User-Agent header to the origin (in this case, the ALB), the origin server can respond with the appropriate version of the website based on the device type. This ensures that mobile users receive the correct content.
upvoted 2 times
...
axdevops
4 months, 2 weeks ago
Selected Answer: A - The User-Agent header contains information about the client's device and browser. By forwarding this header, CloudFront can use it to determine whether the request is coming from a desktop or mobile device. - Forwarding the User-Agent header allows the origin (ALB in this case) to make decisions based on the client's device type and serve the appropriate content. "Option B is not the best choice because adding a User-Agent header to the list of origin custom headers is used for sending additional headers to the origin, not for identifying the client's device type." Options C and D: Enabling IPv6 or updating to the dualstack endpoint does not address the mobile/desktop version problem.
upvoted 1 times
...
MohamedMarzouk
4 months, 3 weeks ago
Answer is A
upvoted 1 times
...
64rl0
5 months ago
Selected Answer: A
Answer is A
upvoted 1 times
...
flaacko
5 months, 1 week ago
Selected Answer: A
The correct answer is A because it talks about setting the distribution behavior to make use of the User-Agent header. Option B talks about using the User-Agent header but then refers to origin settings which have nothing to do with how CloudFront processes a user's request. Option C and D are not relevant to this question.
upvoted 1 times
...
pekalyok
10 months, 3 weeks ago
Selected Answer: A
A is the correct answer
upvoted 2 times
...
konieczny69
1 year, 2 months ago
Selected Answer: A
chatgpt says A
upvoted 2 times
...
bruppp31
1 year, 2 months ago
The correct answer is B, A is incorrect because it is FORWARDING the User-Agent. Not correct. We want to receive/use the User-Agent data to decide what content to deliver.
upvoted 4 times
...
NAVADIYA
1 year, 3 months ago
C. Enable IPv6 on the ALB. Update the CloudFront distribution origin settings to use the dualstack endpoint.
upvoted 1 times
Cloud_noob
1 year, 2 months ago
Wrong. Do you even understand what you are saying? What does IPv6 have to do here? Suggest to gain some knowledge before commenting here
upvoted 3 times
...
...
Benly
1 year, 3 months ago
Selected Answer: B
B is the answer.
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