An application is hosted on Google Kubernetes Engine. A new JavaScript module is created to work with the existing application. Which task is mandatory to make the code ready to deploy?
A.
Create a Dockerfile for the code base.
B.
Rewrite the code in Python.
C.
Build a wrapper for the code to ג€containerizeג€ it.
When deploying a new module to Google Kubernetes Engine (GKE), it is essential to ensure that the application, including all its dependencies and configurations, can run in a container. Creating a Dockerfile is a mandatory step in this process.
A Dockerfile is a script containing a series of instructions on how to build a Docker image for your application. This includes specifying the base image, copying application files, installing dependencies, and setting the command to run the application.
Correct Answer is A:
A. Create a Dockerfile for the code base.
Explanation: Google Kubernetes Engine (GKE) uses Docker as its container runtime, and hence, in order to make your JavaScript module ready to deploy on GKE, you need to create a Dockerfile. This Dockerfile will include instructions on how to build a Docker image of your application, which can then be deployed on GKE.
The other options are not mandatory:
B. Rewriting the code in Python is not necessary if the original code is already in JavaScript. Kubernetes can run any language as long as it's packaged inside a Docker container.
C. The process of "containerizing" is indeed necessary, but it's achieved through the creation of a Dockerfile (option A), not through building a "wrapper" for the code.
D. Rebasing the code from the upstream git repo would only be necessary if there were changes in the upstream repo that you needed to integrate into your current working branch. It's not a mandatory step to make the code ready for deployment to GKE.
A is correct. You’d need a Dockerfile to containerize your app, not a wrapper.
In fact wrapper in Javascript is used to call another which has nothing to do with containerizing your app:
https://developer.mozilla.org/en-US/docs/Glossary/Wrapper
Suggest ans: C/ The Code has to be containerized prior to it being deployed on Kubernetes.
Wrapper functions can be used to make writing computer programs easier. An example of this is the MouseAdapter and similar classes in the Java AWT library. Wrapper functions are useful in the development of applications that use third-party library functions. A wrapper can be written for each of the third party functions and used in the native application. In case the third party functions change or are updated, only the wrappers in the native application need to be modified as opposed to changing all instances of third party functions in the native application
upvoted 2 times
...
Log in to ExamTopics
Sign in:
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.
e7bd289
5 days, 20 hours agotartarus23
1 year agoxXXDarkWizardXXx
1 year, 2 months agoTeringzooi
1 year, 8 months agoNetGirl
1 year, 8 months agobluesky2022
1 year, 10 months ago__al__
2 years, 2 months agopython_tamer
2 years, 4 months agogarcesdavid88
2 years, 8 months agoashf4kbd
2 years, 9 months ago