Professional Cloud Developer · Free Practice Question Medium
Question 12
An ecommerce web application is being developed, which utilizes App Engine standard environment and Memorystore for Redis. During the login process, the application caches the user's information, such as session, name, address, and preferences, for quick retrieval during checkout. However, while testing the application in a browser, a 502 Bad Gateway error is encountered. It has been concluded that the application is not able to connect to Memorystore.
What caused this error to occur?
- A Your Memorystore for Redis instance was deployed without a public IP address.
- B The firewall rule enabling a connection between App Engine and Memorystore was removed during an infrastructure update by the DevOps team.
- C You configured your Serverless VPC Access connector in a different region than your App Engine instance.
- D Your application was set up to use a Serverless VPC Access connector on a separate subnet in a distinct availability zone from your App Engine instance.
Reveal correct answer
Correct answer: C
Explanation
According to the Professional Google Cloud Developer documentation, the reason for a 502 Bad Gateway error in this scenario could be that the Serverless VPC Access connector is configured in a different region than the App Engine instance. This can cause the application to not be able to connect to Memorystore for Redis, which stores the user's information. It is important to note that using a public IP for Redis server is not recommended for security reasons and best practices. Therefore, option A is incorrect. The correct answer is option B, as it correctly identifies the issue with the VPC configuration.Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
You must be logged in to post a comment.
