Chapter 11: Application Hosting — WordPress, Flask and Express
Interview Questions
Practice explaining application hosting with a short example. State what the observed result proves, describe a relevant next check, and give the expected outcome for the customer.
Application hosting चं उत्तर छोट्या उदाहरणासह द्या. सध्याच्या तपासणीत काय कळलं, पुढे काय तपासाल आणि ग्राहकाला कोणतं उत्तर दिसायला हवं, हे सांगा.
Application hosting का जवाब छोटे उदाहरण के साथ दो. मौजूदा जाँच से क्या पता चला, अगली जाँच क्या होगी और ग्राहक को कौन-सा जवाब दिखना चाहिए, यह बताओ.
- Q1. What are the steps to host WordPress on an EC2 instance?
- Select supported PHP, database and frontend versions for the intended setup. Configure the approved database account and site settings, actual PHP handler, scoped permissions, and named HTTPS route. Verify a published post, media and editor workflow.
- Q2. Why use Nginx in front of Gunicorn?
- Nginx can accept public requests and provide approved TLS, static and buffering configuration. Gunicorn is a WSGI server that runs the application workers on the intended private endpoint. Verify both the private app response and named frontend path.
- Q3. What does
wsgi:appmean in a Gunicorn command? - Import the module
wsgi(wsgi.py) and use the object namedappas the WSGI application. - Q4. How many Gunicorn workers should you run?
- A CPU-based formula is a starting heuristic. Choose worker count and type using the actual CPU, memory, downstream resources, latency and representative workload. Verify useful operations and failures after any change.
- Q5. What is the difference between
pm2 restartandpm2 reload? - Restart replaces the selected application process or processes. Reload aims for continuity in compatible cluster configurations and can fall back to restart. Test readiness, shutdown and representative traffic before claiming availability.
- Q6. How do you make pm2 apps start after a reboot?
- Install the approved startup integration for the actual service identity and Node runtime. Save the intended process list in that context and verify recovery in an authorized staging environment. Check the named app’s actual response after startup.
Explain what the customer needs and how you would verify it
Picture a first cloud support interview. The interviewer says a dairy has a WordPress notice board, a Flask pickup schedule and an Express lookup. They ask you to move one and keep its public behavior intact. They continue with a scenario where the original site still works but its replacement responds with a wrong link, a wrong release marker or a gateway error. You need a way to reason across different stacks without guessing which command happens to apply.
Answer with three parts. State what the component does. Explain what evidence the recorded symptom already gives you. Give one confirming comparison and the requested outcome. If you know only that a process is online, say exactly what remains unproven. If the requested URL is HTTPS and uses a custom host, keep that entire host and path in your example. A command is useful when you can explain what it checks and what it bypasses.
The cases below use the same fictional site to keep variables clear. Answer each aloud before opening the worked response. Ask a partner to change one condition, such as which listener terminates TLS or whether the upload uses an external store. A prepared answer should change when that condition materially changes the architecture. You do not need an AWS account, a website purchase, or a public deployment to rehearse these decisions.
Explain what a WordPress site needs to retain
How would you prepare a WordPress deployment?
I would begin with the site’s expected public name, the planned frontend, and the current WordPress runtime requirements. WordPress executes under PHP and typically uses a compatible MySQL or MariaDB database. Choose supported package versions, required extensions and update responsibilities. The web server should point at the intended site and PHP handler. Create a dedicated database and app account for this site through the approved configuration process. The editor accounts are separate from the operating-system and database identities.
I would stage the official release in a controlled directory, configure the approved database, authentication and canonical address settings, and restrict access to configuration and any needed credentials. Set the required paths for application reading and local media writing if applicable. Configure the named frontend and supported rewrite behavior for the application. Complete installation through an appropriate scoped and secure route. Test the actual site, one published permalink, a harmless upload and a representative editor workflow before announcing it.
If the interviewer specifies a stable direct address, discuss whether the selected architecture uses an Elastic IP and the costs and scope of that decision. Behind a managed public endpoint, it could instead use the supported managed DNS target and certificate arrangement. A good answer starts from the intended endpoint and roles. It does not require using an IP as the canonical address or changing shared host defaults.
What needs to be backed up before moving or upgrading WordPress?
I would inventory the application’s files, protected configuration, and database. Core, themes and plugins may be supplied by a known release. Local uploads are user data. WordPress typically stores its posts, site settings and related metadata in the database. The site could also have an external store for media and plugin-managed information. A recoverable set identifies the data and artifacts that belong together and when they were taken. A web server volume snapshot alone cannot capture a separately hosted database.
Rehearse restore in a distinct approved environment. Verify an actual published post, a saved permalink, and the media file referenced by that post. Use the correct target database and verify the intended account access before importing. Do not let a staging restore deliver unintended notifications or use production credentials. If changing an app version can change database structure, check whether the earlier version can still operate on the current data. Rolling back code and restoring earlier data have different consequences.
A follow-up could say that backups are encrypted and regularly scheduled. Those practices protect access and timing, but the operator still needs observed restore evidence. I would state how much recent data the business can afford to lose and what the recovery test demonstrated. For the dairy, recovery includes seeing the exact pickup notice and opening its uploaded file through the intended route. File and database archives are inputs to that test.
The homepage and a direct post link work, but the pretty permalink returns 404. Why?
The post may exist while routing for the friendly URL is wrong. A permalink is the public path meant to identify the same content. In many configs Apache applies rewrite logic to forward a friendly path to WordPress. That logic can be part of server configuration or an allowed directory override. Nginx commonly tries existing paths and then passes the applicable request to WordPress’s entry point. I would inspect the effective site configuration and compare which component produced the 404.
Keep the exact host and public path in the test. The shared frontend may respond with a different site’s 404 if the wrong virtual host is selected. If the known direct reference succeeds on the expected WordPress deployment, collect the request path at the frontend and application. Confirm what rewrite or fallback is active where this host is defined. A broad override or restart affecting multiple sites is unnecessary when the actual missing rule belongs to one approved path.
After correcting the reviewed setting, test the original exact permalink and a known static asset. If another site uses the same listener, include a separate authorized control. Save before-state evidence so the change can be reversed without altering unrelated configuration. The right answer is a private diagnosis supported by a defined test, followed by evidence of the normal route people will visit.
Which account needs permission to write the upload directory?
Identify the actual process that performs the upload write. In an Nginx and PHP-FPM configuration, that can be the account of a particular PHP pool. In other architectures the appropriate worker and media store differ. Then inspect the exact destination and relevant parent directories. Whether a web daemon has read permission on static assets is an independent question. Keep executable code and confidential configuration under the deployment ownership model rather than allowing unrestricted worker writes.
I would investigate a failed upload by checking the return status and which component rejected the operation, then the intended file size, active limits, available space and access policy. On a host using SELinux, review the actual labeled denial if present. Adding broad rights can mask the symptom while widening the ability to change unrelated assets. An approved change should permit the required operation narrowly and retain useful controls.
For a follow-up, I would test a harmless allowed file and confirm both upload result and retrieval through the proper site route. I would also make sure unrelated sensitive files do not become publicly available. When the upload is meant to be restricted to some users, verify the intended audience and role rather than treating any returned file as success.
Why can a staged copy redirect to the production domain?
WordPress has site address settings and can store absolute links in content and plugin values. A proxy or redirect rule can also choose that address. Start with the exact staging URL and the raw redirect Location. Verify whether the staging vhost was selected and whether the app or the frontend produced the redirect. A DNS result alone does not show which component created the new URL.
If stored application addresses need to change, use the documented migration procedure with a backup and rehearsal. A compatible tool can handle PHP serialized values rather than blindly changing text in a dump. An app configuration override can affect generated URLs without changing every historical content link. Keep the expected scope explicit. Do not mutate the production database just to correct a staging record.
Use the intended secure name then confirm an exact post, a referenced media item and an approved admin action. Compare normal browser and staging candidate paths if they use different frontends. The closure note should include the starting URL, approved redirect destination if any, and what the staging site actually returned. That is more precise than saying the site was moved.
Explain Flask, the WSGI server and worker supervision
What does each component do in Flask, Gunicorn and Nginx?
Flask handles application routing and behavior. WSGI is a standard Python interface used by the server to invoke the application. Gunicorn loads the selected WSGI app, binds a listener and manages worker processes. Nginx can accept public connections, select the site, provide TLS, serve approved static files and forward application requests to the private listener. If an external service terminates TLS, draw that earlier connection too. Public frontend, private listener and app operation need separate observations.
For the dairy, the named public request for east pickup should return the expected time. A static response can be served before the application is involved. I would check the exact dynamic route and compare what the private listener responds with. If the public result is 502 while the private route succeeds, compare the actual named frontend and proxy connection. If the private path itself produces the wrong JSON marker, trace the app release and data before altering Nginx.
Flask’s development server and debugger belong to local development rather than a production service. In this architecture a service manager can also supervise Gunicorn. That manager does not load the Python route itself. Its configured restart policy can start a process again under appropriate conditions. The deployment still needs to verify the working frontend and meaningful application operation.
How do you interpret the Gunicorn argument wsgi:app?
It identifies a module named wsgi and the name app within that module. Gunicorn loads that application object. A project can also use a module with an application factory invoked by a corresponding target string. I would check the actual project rather than assume every module needs to be called wsgi or that every app’s object name is the same.
If a service shows a module import error, look at what name the error actually reports. The app module may be absent from the process’s import path. Another imported dependency can be missing from the virtual environment. The service may use a different interpreter from the login shell that worked during development. Confirm the released directory, package dependencies and actual configured executable before changing which thing Gunicorn imports.
Once startup imports correctly, test its intended private socket or address rather than just checking whether the executable now appears in a process list. A known real route marker can confirm which app and release were loaded. For a candidate behind a proxy, send the same normal request through the exact named frontend to establish path mapping and intended results.
What worker count would you choose for a first Flask deployment?
I would choose an initial number and validate it with relevant demand and resource evidence. A commonly cited CPU-based starting heuristic can be a prompt for measurement. It is not a universal requirement. Worker type, cores, available memory, request latency, connection capacity and app design all matter. A long report and a short schedule lookup can consume resources differently despite each being one HTTP request.
Gunicorn’s basic synchronous worker handles one request at a time. Making more independent workers can increase concurrency up to some limitation but can also consume more memory or put more pressure on a shared database. If a CPU-bound job blocks a worker or a slow downstream call limits average latency, choose an appropriate app and worker design with measurements. Treat the desired response time and completed useful operations as the goal, rather than maximizing process count.
For a follow-up, I would test replacement and state. The master can replace a worker that exits, but the worker’s local in-memory changes may be lost and an in-flight request may be interrupted. Move important business state to appropriate durable storage. Record the exact process and workload observed in the lab and avoid a general uptime claim from a single restart.
Why does Nginx return 502 when Gunicorn appears active?
I need the exact request and the frontend that produced the result. Use the named URL and identify the configured upstream in the selected route. An active process may be listening on another address or failing to accept requests. A Unix socket can require a group permission or access to a parent directory. An HTTP socket can receive requests the frontend expected to send over another protocol. The manager’s reported active state does not verify those connections.
I would compare a direct test through the expected private path with a request through the named frontend. Use the same meaningful application method and route when possible. If the direct request fails, inspect application import, bind and runtime logs. If the direct request works, review the frontend’s actual selected virtual host and upstream route, access settings and timestamps. If another component creates the 502, use the logs and available response evidence to identify it.
I would avoid treating every 502 as an implicit request to replace the entire stack. After the confirmed scoped correction, repeat the earlier private and public checks. Record the release marker and the observed schedule. Also check a deliberately wrong route and an authorized control if the frontend is shared. That gives you a way to prove both the cause and the actual recovery.
How would a trusted proxy influence the URLs Flask generates?
The app normally sees its immediate peer. If Nginx or another frontend terminates public TLS and sends HTTP privately, the private request scheme may differ from the visitor’s. A controlled proxy can pass the real public details using configured forwarded values. Flask can use Werkzeug’s ProxyFix for the particular headers and number of approved proxy hops. Gunicorn has its own relevant forwarding configuration too. The intended chain determines which values are available at each stage.
I would draw the full path, including any load balancer or CDN, and name which layer supplies or overwrites scheme, host and client-address details. A client can submit headers on an external request. Only trust the verified chain and its chosen policy. Avoid copying broad examples that can let arbitrary path or address information alter application decisions. A production configuration should not allow public requests to bypass the intended boundary and hit the backend directly.
Test the real customer route and a useful generated link or redirect. Does the Location have the right scheme, host and path when the browser used HTTPS? If a local HTTP direct request behaves differently under controlled test conditions, the difference may be expected. Compare the design with what the backend observed before changing forwarding settings across unrelated apps.
Connect Express routing to the manager that runs it
What is the role of PM2 in an Express deployment?
Express runs as JavaScript within Node and handles the requests sent to that listening program. PM2 starts and supervises the configured process and provides an account-scoped view of its lifecycle and logs. Nginx can accept the public route and proxy it to the intended app. PM2’s job differs from an HTTP server or Python’s WSGI layer. A supervisor should know which app it controls and the application should own how a supported route behaves.
I would record the intended runtime, script and working directory, the service account and the exact private listener. PM2 startup management is optional where another approved platform already supervises the lifecycle. If the chosen architecture does use PM2, its process name and selected manager instance are part of its scope. Globally stopping all applications because one route fails introduces unrelated changes.
For acceptance, check a meaningful operation such as the east schedule lookup. Verify the current release marker in the expected response. Compare the public route with an approved internal one when diagnosing. A process may be online and still answer from an earlier release, use the wrong configuration, or fail on the operation people need. Show which test establishes each layer.
What changes when a Node app uses cluster mode?
Cluster mode can use several worker processes to handle incoming connections for one service. That changes process ownership and capacity. It does not make arbitrary in-memory variables shared among the workers. If the app stores an order in one worker’s JavaScript array, another worker can legitimately return a view that lacks it. Replacing the first process can lose the only copy. Use a suitable durable storage design and verify the actual customer data path.
A small repeated page-refresh test can demonstrate that different processes responded under some conditions. It cannot measure total capacity or prove a stable distribution. Existing connections and what operations the test uses can matter. A CPU-bound route or shared database bottleneck may remain slow as workers are added. Test representative demand, errors, memory and completed work. Determine whether a separate capacity design is needed for long or blocking operations.
If the interviewer asks for the right number of workers, I would say it depends on the workload, runtime and acceptable limits rather than automatically using the machine maximum. A worker count establishes one configuration parameter. I would verify an application workflow and the effect of one worker stopping, including the state that must remain regardless of which process receives the next request.
What can PM2 restart and reload tell you about availability?
A restart replaces the selected process or processes. A single process can stop accepting requests for a period. Reload can aim to replace compatible cluster workers with overlap, but its success depends on mode, readiness and how the app shuts down. PM2 documents circumstances where reload falls back to restart. I would avoid promising uninterrupted service before testing the particular deployment and its actual traffic pattern.
I would check how the new version shows readiness and how the earlier process drains requests. This is important for a checkout or another operation with durable writes. A slow request might be interrupted at the configured shutdown limit, even if a later request succeeds. The data layer also needs compatibility across the change. If a retry is possible, define how the application prevents unintended duplicate operations. The app’s visible success path gives useful evidence beyond a momentary process state.
Take a baseline of the current useful operation and measure relevant in-flight and new requests during a controlled transition. Confirm the expected new build when it becomes active. If the acceptance criteria fail, restore the approved previous compatible artifact and verify the same behavior. The isolated classroom restart demonstrates environment and process replacement only. It does not simulate public clustered uptime.
What does it take for a managed app to return after a host reboot?
First identify the approved boot integration and service owner. If it uses PM2, check that startup will use the intended Node binary and that the saved list under that same identity points at the correct project. Saving a list and installing a startup unit are separate steps. The expected path, environment and permissions should be visible from the configured service. Running a login-shell command under your own account does not establish what another startup context can see.
I would verify this with an approved dedicated practice host where a startup rehearsal is allowed. Check startup status and the exact app release marker once the system is back. The public hostname, TLS and route still have to reach it. Do not reboot a shared public host because a lesson suggests observing a process come back. The app owner and host owner should agree on any disruptive test and return path.
If the process is absent, compare the installed integration with its configured account and process list. If the app is present but old, compare the runtime, working directory and environment in the persisted settings. Those symptoms can lead to different repairs. State whether you tested a manager restart, a machine startup or only read the configuration. Those conclusions carry different evidence.
How should a small JSON endpoint handle invalid and unknown inputs?
First identify the request method and the body format. A JSON parser can reject malformed text. A correctly parsed object can still have a missing, wrong-type or unsupported value. The app must validate according to its own route contract. In the dairy lookup lab, invalid text and a numeric field produce different controlled 400 responses, an unsupported pickup name returns 404, and an oversized request is rejected by the configured parser limit.
Use clear error responses without revealing a stack trace, secret or unnecessary process detail. The frontend can also reject a body before the application sees it, which matters when diagnosing 413. Compare the actual response body and source. If an Express 5 async handler returns a rejected promise, its documented error flow can pass it to registered error handling. Code outside the returned async flow needs its own deliberate error handling.
I would test a known valid input, the relevant invalid types, a properly formed unknown resource, and any intended body limit using controlled data. The page that displays any returned user data should render it safely as text or with an appropriately escaping framework. Readable API error messages and secure display behavior are separate design choices. PM2 can manage the process without enforcing either.
Defend a controlled release across the three stacks
How do you migrate an active application on a shared host?
I would identify the exact domain, route, release and configuration covered by the change, then take a relevant before-state backup and capture a current working request. Keep neighboring sites out of the change. Stage the intended candidate artifact with pinned or otherwise reviewed dependencies, compatible data and runtime configuration. Test its expected app behavior on a private path before opening or moving the ordinary public route.
Use the exact named HTTPS route for acceptance. Check the expected response content as well as status. WordPress may need a post and media, Flask may need its useful schedule result, and Express may need the expected version and a typed lookup. Check the shared frontend’s separately authorized control route. Keep the recovery plan and previous compatible artifact available. If the deployment affects a database or persistent files, account for newer data separately.
When describing the release, report relevant before-and-after evidence and pending parts. If only a private listener was tested, name that limitation. If the normal customer path was available through one network family, avoid generalizing to another path you did not observe. A good handoff clearly identifies both the tested outcome and the responsible owner who can follow up.
When is rolling back source code insufficient?
An application includes more than source files. It can depend on reviewed versions of libraries, a runtime version, environment, a service path and the shape of data. If a new release migrated database tables or changed how it references media, the previous code may not understand the newest state. A rollback needs a compatibility plan. Restoring an older database can also lose newer edits or orders, so choose that independently with the data owner.
I would keep the previous artifact and production configuration in recoverable form and test the return procedure in an approved environment. If using a live route and private data store, check deployment and recovery against today’s expected business operation, not only whether the service starts. Include a control result for neighboring deployments on the same host. A service can restore an earlier process while still pointing at the wrong data or certificate endpoint.
For a practical example, the device sees the article after a rollback but the uploaded notice is still missing. The code restore may not include the affected media store. Inventory it and check the exact missing file reference. The complete recovery should show both article and file, preserving later accepted changes according to the recovery requirements.
How can an application use a private database without opening it to the internet?
I would draw the browser-to-frontend connection separately from application-to-database. The application can run with a private network route to an approved database listener, using a dedicated app identity and configured transport policy. On AWS, the security controls can permit the expected application sources instead of arbitrary public clients. Credentials need controlled delivery to the intended process. The web route should expose the application behavior, not a direct database socket.
When troubleshooting a failed database connection, identify which phase failed. An endpoint name may fail to resolve. The route may time out or be denied. The database may reject the account or allow a login yet deny work in the relevant schema. Checking with an unrelated administrator account or opening a broad rule does not establish that the actual service will work. Use approved limited checks from the same application path with the meaningful expected operation.
For example, WordPress can show a file sourced directly by Nginx even when PHP cannot load the page’s database content. Flask or Express can show local readiness even if a business lookup requires a failed data path. Test a representative operation and include the data owner where relevant. The first observation tells you which connection to inspect next.
What evidence would you put into a safe support handoff?
Start with the exact supported customer action, the hostname and path, the time and the expected response. Include the actual status and a harmless content marker or error category. Label which observations came from an ordinary public request and which used a private listener, temporary fixture or address override. Architecture and scoped logs can help identify where the route diverged. Only include details someone needs to reproduce the result.
Then name the current state of the release and the next owner. State which files or config are in scope, whether a backup exists, and the proposed smallest reversible change. If a new deployment requires an update to data or another shared service, route that to the appropriate owner. Do not silently bundle multiple scope changes because they use the same virtual machine. If the app’s data is unaffected by the deploy, test that assumption with a known operation before stating it.
Keep sensitive values out of the handoff. Process environments and debug output can contain credentials. Customer input can include access details or personal content. Use redacted small examples and a private location for approved logs. A good incident note lets the next operator verify the exact failed layer without sharing a real user’s data or guessing which host was tested.
What if the process is ready and the expected route still returns out-of-date information?
First identify what the readiness route actually reflects. It may report that the listener, process identity or release loaded. The actual content may come from another authority. WordPress can retrieve records and files or a cached response. Flask and Express can read external data or retain values loaded when the process started. I would compare the public response, current app marker and relevant data version for the same route. Availability and correctness can fail in different ways.
Suppose the east collection time is newly configured to 16:00, but a visitor still sees yesterday’s time. Check the closest control you know is valid. A private response might show the new value while a CDN or frontend cache serves the old one externally. If both show the old value, inspect the data source and which process read it. A saved release marker can identify the artifact without proving its external data was refreshed. Keep the intended caching behavior in the reasoning before invalidating anything.
For recovery, repeat the exact backed business input through a permitted normal customer path. Confirm the expected current result and separately check other required variants the same application should still support. Record version, time and what data or cache observation explained the discrepancy. If you had to bypass a local cache or use the current candidate explicitly, label that scope and retest under the ordinary client path before declaring that customers see the correction.
Give a partner four evidence pairs to discuss
The program below prints four synthetic two-observation cases and a short answer key. Run it with Python 3 in your training terminal. A partner should read each prompt, pause so you can offer a first check, then compare that check with the suggested layer. The program checks that distinct layers and complete questions appear. It does not contact a training app or judge the quality of an answer.
python3 - <<'PY'
cases = [
("WordPress", "the post is present", "the media request returns 404", "persistent media"),
("Flask", "the frontend returns 502", "the private lookup succeeds", "frontend-to-app path"),
("Express", "PM2 shows the app online", "the route returns v1 instead of v2", "active release"),
("Shared host", "the candidate response is correct", "the control site changed", "change boundary"),
]
def question(known, symptom):
return f"You observe that {known} and that {symptom}. What would you compare next?"
for platform, known, symptom, expected_layer in cases:
print(platform + ": " + question(known, symptom))
print("Answer key to reveal second: " + expected_layer)
assert len({layer for _, _, _, layer in cases}) == len(cases)
assert all(question(known, symptom).endswith("?") for _, known, symptom, _ in cases)
print("Four separate first checks. Evidence is synthetic.")
PY
For each case, write down what the existing observation establishes. A post being present still leaves the referenced media to recover. A successful private Flask lookup still leaves the intended public frontend path to confirm. A running Express process can still use the old app revision. A correct candidate response can coexist with an unintended change to the control site. Give the shortest actionable next comparison for each.
When both people can describe the baseline quickly, change one fact per case. Make the WordPress media bytes available but require the wrong hostname. Make the Flask private socket fail too. Let Express return the new release marker with an old business value. Let the shared control site work via its IP but fail by its normal hostname. Describe how the new evidence changes the layer you inspect. A strong answer uses the same method while arriving at a more precise diagnosis.
Finish by asking your partner to name the first useful customer test after each hypothetical correction. They should speak it as a URL, a user action and a result. Compare the same request before and after so you have evidence of improvement. Nothing needs to be cleaned up in this synthetic exercise. For real runtime practice, use the isolated leaf labs rather than attaching these checks to an unapproved public site.
Check which conclusion each observation supports
The WordPress file backup is complete, and a separate database has no available backup. What should you say about recovery readiness?
Answer and reasoning
The files cover one part of the service. A typical WordPress site also needs its database content and settings to recover. Request a consistent data set and rehearse an actual post and media route.
An app accepts a command locally using a developer’s working directory. The managed service reports an import failure. What should you compare?
Answer and reasoning
Compare the exact startup command, service environment, interpreter, working directory and import error. The developer’s environment and the managed service may load different code or dependencies.
Nginx serves the static style, but the API route gives 502. What remains untested?
Answer and reasoning
The application upstream route and response. Verify the selected named path, actual bind and private connection evidence. The static response can be independent of the backend.
PM2 saves the process list successfully under your login account. Is the app guaranteed to return after operating-system reboot?
Answer and reasoning
No. Check the intended account’s boot integration, Node path and saved configuration. Rehearse an approved startup and test the resulting application route.
A cluster rollback can select old code. Which kind of compatible state needs separate attention?
Answer and reasoning
Database schema, environment and persistent data or uploads may remain at a newer state. Check the prior artifact’s compatibility and verify actual operations after the controlled return.
Cards for one-minute interview answers
Complete WordPress recovery
Back up and restore database and required files together. Verify an actual published post and linked media from the intended route.
WSGI import and worker
Gunicorn loads the correct module and application in its configured Python environment. Its workers process requests.
Supervisor scope
Find the intended PM2 application name, manager instance, service identity, runtime path and approved boot behavior.
Actual public route
Keep the hostname, HTTPS scheme and useful path. Compare the private app with the ordinary frontend and a matching expected result.
Release compatibility
Keep source, dependencies, configuration, persistent state and stable request evidence in the return plan.
Official references
- WordPress runtime and database requirements
- WordPress installation steps
- WordPress backup and restore scope
- WordPress migration
- WP-CLI search and replace behavior
- Apache directory override policies
- WordPress and Nginx configuration
- Flask production deployment
- Flask trusted proxy configuration
- Gunicorn worker design
- Gunicorn deployment and proxy
- PM2 process supervision
- PM2 cluster mode and reload
- PM2 startup and restore
- Express error handling
- Nginx proxy requests
- AWS network access with security groups