exam questions

Exam Professional Cloud Architect All Questions

View all questions & answers for the Professional Cloud Architect exam

Exam Professional Cloud Architect topic 1 question 159 discussion

Actual exam question from Google's Professional Cloud Architect
Question #: 159
Topic #: 1
[All Professional Cloud Architect Questions]

A lead software engineer tells you that his new application design uses websockets and HTTP sessions that are not distributed across the web servers. You want to help him ensure his application will run properly on Google Cloud Platform.
What should you do?

  • A. Help the engineer to convert his websocket code to use HTTP streaming
  • B. Review the encryption requirements for websocket connections with the security team
  • C. Meet with the cloud operations team and the engineer to discuss load balancer options
  • D. Help the engineer redesign the application to use a distributed user session service that does not rely on websockets and HTTP sessions.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
AWS56
Highly Voted 4 years, 7 months ago
I agree with C
upvoted 16 times
tartar
3 years, 11 months ago
C is ok
upvoted 8 times
[Removed]
2 years, 8 months ago
The key line from the link above: Session affinity for WebSockets works the same as for any other request. For information, see Session affinity.
upvoted 4 times
...
...
fraloca
3 years, 5 months ago
https://cloud.google.com/load-balancing/docs/https#websocket_support
upvoted 6 times
...
...
lynx256
Highly Voted 3 years, 3 months ago
IMO C is ok. Beside the reasons mentioned above regarding why A, B and D are wrong, there are also: A and D are wrong because are abot changing the app - whereas in the task "You want to help him ensure his application will run properly on GCP" (not REDESIGN/CHANGE). B is wrong because you don't have to "Review the encryption requirements for websocket connections with the security team"...
upvoted 7 times
ashrafh
1 year, 7 months ago
thanks
upvoted 1 times
...
...
e5019c6
Most Recent 6 months, 1 week ago
Selected Answer: D
I think that, since the app is in design stage, it's totally valid to change its design to adapt to work better in the cloud. Websockets and HTTP session, while supported, are not the optimal choice for apps in the cloud. Some user said that the question asks for help ensure his app runs on GCP, so we shouldn't change it. But I don't think that's the case. As architects we should oversee any design that developers and engineers are introducing to the organization's architecture.
upvoted 2 times
...
examch
1 year, 5 months ago
Selected Answer: C
C is the correct answer, Google Cloud HTTP(S)-based load balancers have native support for the WebSocket protocol when you use HTTP or HTTPS as the protocol to the backend. The load balancer does not need any configuration to proxy WebSocket connections. https://cloud.google.com/load-balancing/docs/https#websocket_support
upvoted 3 times
...
NodummyIQ
1 year, 6 months ago
The answer is D. C. is not the best answer because it does not address the issue of websockets and HTTP sessions not being distributed across the web servers. While load balancer options may be relevant to the overall operation of the application, they do not address the specific issue of ensuring that the websockets and HTTP sessions are properly distributed. A better solution would be to help the engineer redesign the application to use a distributed user session service that does not rely on websockets and HTTP sessions, as this would address the issue of session distribution. Alternatively, the engineer could consider converting their websocket code to use HTTP streaming, which could potentially help with session distribution.
upvoted 1 times
e5019c6
6 months, 1 week ago
Totally agree. But you didn't vote to change the C hegemony :P
upvoted 1 times
...
...
AzureDP900
1 year, 8 months ago
C is fine.
upvoted 2 times
...
ijazahmad722
1 year, 10 months ago
Selected Answer: C
I agree with C
upvoted 2 times
...
vincy2202
2 years, 6 months ago
Selected Answer: C
C is the correct answer
upvoted 2 times
...
joe2211
2 years, 7 months ago
Selected Answer: C
vote C
upvoted 4 times
...
Cloudguy123
2 years, 10 months ago
New Case Study Question- TerramEarth For this question, refer to the TerramEarth case study. You are building a microservice-based application for TerramEarth. The application is based on Docker containers. You want to follow Google-recommended practices to build the application continuously and store the build artifacts. What should you do?
upvoted 2 times
Cloudguy123
2 years, 10 months ago
A) Configure a trigger in Cloud Build for new source changes. Invoke Cloud Build to build container images for each microservice, and tag them using the code commit hash. Push the images to the Container Registry. B)Configure a trigger in Cloud Build for new source changes. The trigger invokes build jobs and build container images for the microservices. Tag the images with a version number, and push them to Cloud Storage. C) Create a Scheduler job to check the repo every minute. For any new change, invoke Cloud Build to build container images for the microservices. Tag the images using the current timestamp, and push them to the Container Registry. D) Configure a trigger in Cloud Build for new source changes. Invoke Cloud Build to build one container image, and tag the image with the label 'latest' Push the image to the Container Registry
upvoted 2 times
AzureDP900
1 year, 8 months ago
A looks good to me.
upvoted 2 times
...
nickojul
2 years, 10 months ago
A is ok
upvoted 5 times
...
...
...
DreamerK
2 years, 11 months ago
Why D is wrong is the wording "doesn't rely on". This means the application needs to use other protocols instead of http or websocket. This is not realistic and requires too much application refactoring. Actually a distributed session service is possible with http or websocket as long as the session information is stored in shared storage such as nosql database or redis that can be accessed by all web servers. In this sense, D is wrong answer.
upvoted 1 times
e5019c6
6 months, 1 week ago
There is no refactor since the app is only in design stage. Read the question carefully: ''A lead software engineer tells you that his NEW APPLICATION DESIGN...''
upvoted 1 times
...
...
AnilKr
2 years, 11 months ago
C is fine. Global HTTP(S) load Balancer supports webSockets.
upvoted 1 times
...
kopper2019
2 years, 11 months ago
hey guys new Qs posted as of July 12th, 2021, All 21 new Qs in Question #152
upvoted 3 times
...
giovy_82
2 years, 11 months ago
I also agree with C. the answer D could be ok but the question says "his new application design " so it means that the app has just been developed and deployed so there's no convenience to redesign it from scratch to avoid use of sessions and websocket.
upvoted 1 times
ashrafh
1 year, 7 months ago
from where you got the "new" word? ha ha
upvoted 1 times
e5019c6
6 months, 1 week ago
From the question, ninth word from the start. Also, ''design'' is an important word. It means the app hasn't been built yet. Else it would have said ''his new application'' only.
upvoted 1 times
...
...
...
victory108
3 years, 1 month ago
C. Meet with the cloud operations team and the engineer to discuss load balancer options
upvoted 1 times
...
un
3 years, 1 month ago
C is correct
upvoted 1 times
...
Ausias18
3 years, 3 months ago
Answer is C
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